package com.hk.migration.db.hk;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;
import lombok.Data;

/**
 * 老师资金表
 */
@Data
@Table(name = "fund_tch_account")
public class FundTchAccount implements Serializable {
    /**
     * 老师id
     */
    @Id
    @Column(name = "tch_id")
    private Integer tchId;

    /**
     * 总金额
     */
    @Column(name = "total")
    private Double total;

    /**
     * 预约课所得
     */
    @Column(name = "book_avail")
    private BigDecimal bookAvail;

    /**
     * 已提现金额
     */
    @Column(name = "withdrawed")
    private BigDecimal withdrawed;

    /**
     * 已发放工资
     */
    @Column(name = "payroll")
    private BigDecimal payroll;

    /**
     * 冻结
     */
    @Column(name = "`freeze`")
    private BigDecimal freeze;

    /**
     * 提现账户类型：1，paypal；2，alipay
     */
    @Column(name = "account_type")
    private Integer accountType;

    /**
     * 提现账户：alipay；paypal
     */
    @Column(name = "with_account")
    private String withAccount;

    /**
     * 提现账号是否验证：0 未验证；1 已验证
     */
    @Column(name = "account_check")
    private Integer accountCheck;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Integer createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Integer updateTime;

    /**
     * 创建时间
     */
    @Column(name = "gmt_create")
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @Column(name = "gmt_modified")
    private Date gmtModified;

    /**
     * 创建人ID
     */
    @Column(name = "creator_id")
    private Integer creatorId;

    /**
     * 创建人名称
     */
    @Column(name = "creator_name")
    private String creatorName;

    /**
     * 修改人ID
     */
    @Column(name = "modifier_id")
    private Integer modifierId;

    /**
     * 修改人名称
     */
    @Column(name = "modifier_name")
    private String modifierName;

    /**
     * 操作来源:默认0,1-新管理后台,2-定时器
     */
    @Column(name = "`source`")
    private Integer source;

    private static final long serialVersionUID = 1L;
}
